/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: UserServiceImpl
 * Author:   zhouheng
 * Date:     2018/7/3 23:30
 * Description: 用户管理业务类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.modular.sys.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hengby.hengcrud.modular.sys.mapper.UserMapper;
import com.hengby.hengcrud.modular.sys.model.User;
import com.hengby.hengcrud.modular.sys.service.IUserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 〈一句话功能简述〉<br> 
 * 〈用户管理业务类〉
 *
 * @author zhouheng
 * @create 2018/7/3
 * @since 1.0.0
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements IUserService{

    @Override
    public List<Map<String, Object>> selectUsers(Object o, String name, String beginTime, String endTime, Integer deptid) {

        return this.baseMapper.selectUsers(o, name, beginTime, endTime, deptid);

    }

    @Override
    public User getByAccount(String acount) {
        return this.baseMapper.getByACcount(acount);
    }

    @Override
    public int setStatus(Integer userId, Integer code) {
        return this.baseMapper.setStatus(userId, code);
    }
}